package com.interviewbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.interviewbackend.entity.InterviewRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;
@Mapper
public interface InterviewRecordMapper extends BaseMapper<InterviewRecord> {

    // 根据面试ID查询所有记录
    @Select("SELECT * FROM interview_record WHERE interview_id = #{interviewId}")
    List<InterviewRecord> findByInterviewId(Long interviewId);
}
